#include<iostream>
using namespace std;
int main(){
    int a=10;
    int b=20;
    int &c=a;
    int *ptr=&a;
    
    ptr=&b;
    cout<<a<<" "<<b<<" "<<c<<" "<<ptr<<" "<<*ptr<<endl;



    return 0;
}